<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.knowledge.model.User" %>
<%
	User user = (User)request.getAttribute("user");
	String userId = (String)request.getAttribute("userId");	
	String loginId = (String)request.getAttribute("loginId");
%>

<div class="profile-tabs clearfix">
	<div class="profile-tabs-holder">
		<h2><%=user.getName() %>
			<span id="status-show">
				<span id="currentStatus" class="status">
					<%=user.getStatus() %>
				</span>
			</span>
		</h2>
		<%	if(userId.equals(loginId)){ %>
		<div id="statusEdit" class="edit-status">
			<form method="POST" action="statusModify.action" id="statusForm">
			<input type="hidden" name="userId" value="<%=userId %>" />
			<input type="hidden" name="loginId" value="<%=loginId %>" />
			<input type="hidden" name="type" value="profile" />
			<div>
				<textarea id="statusContent" name="status"
					cols="60" rows="3"
					title="输入内容，按“确定”键保存。"></textarea>				
			</div>
			<div class="status-edit">
				<span class="float-right">
					<a href="javascript:document.getElementById('statusForm').submit();"
						id="statusSubmit">确定</a>
					<span class="pipe">|</span>
					<a onclick="javascript:document.getElementById('statusContent').value='';"
						id="statusCancel" href="javascript:void(0);">取消</a>
				</span>
				<span class="status-count" id="statusCount"></span>
			</div>
			</form>
		</div>
		<%	} %>
		<div class="profile-tabs-circle clearfix">
			<ul class="clearfix">
				<%--<li class="selected">
					<a onfocus="this.blur();" class="tab-link"
						href="/profile.do?userId=1&v=news">个人新鲜事</a>
				</li>
				--%><li>
					<a onfocus="this.blur();" class="tab-link"
						href="/profile.do?userId=1&v=info">个人信息</a>
				</li>
				<%--<li>
					<a onfocus="this.blur();" class="tab-link"
						href="/profile.do?userId=1&v=knowledge">知识</a>
				</li>
				<li>
					<a onfocus="this.blur();" class="tab-link"
						href="/profile.do?userId=1&v=share">分享</a>
				</li>
			--%></ul>
		</div>
	</div>
</div>
